{template header}
{php doAction('tseditor')}
<div class="midder">
<div class="mc">


<div class="cleft">

<div class="bbox pd10">
<h1>{php echo htmlspecialchars($strArticle[title])}</h1>
{if $strArticle['tags']}
<div class="tags">
{loop $strArticle[tags] $key $item}
<a href="#">{$item[tagname]}</a>
{/loop}
</div>
<div class="clear"></div>
{/if}

<div class="tar c9"><a href="{tsUrl('user','space',array('id'=>$strArticle[user][userid]))}">{$strArticle[user][username]}</a> 发表于 {$strArticle[addtime]}</div>

<div class="fs14 lh30">
{$strArticle[content]}
</div>

<div class="tar">
<a class="btn" href="javascript:void('0');" onclick="recommend('{$strArticle['articleid']}');">{$strArticle['count_recommend']}推荐</a>
<a class="btn" href="">{$strArticle['count_comment']}评论</a>
</div>

<div class="tar pd100">

{if $TS_USER[user][isadmin]==1}
<a href="{SITE_URL}index.php?app=article&ac=edit&articleid={$strArticle[articleid]}">修改</a> 
<a href="{SITE_URL}index.php?app=article&ac=delete&articleid={$strArticle[articleid]}">删除</a>
{/if}

</div>
<div class="clear"></div>

<div class="btitle">推荐阅读</div>

<div class="commlist">

<ul>
{loop $arrArticle $key $item}
<li><a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">{php echo htmlspecialchars($item['title'])}</a> {$item['addtime']}</li>
{/loop}
</ul>

</div>

<div class="btitle pd100">你的回应</div>

<ul class="comment">
{loop $arrComment $key $item}
<li class="clearfix">
<div class="user-face">
<a href="{tsUrl('user','space',array('id'=>$item[user][userid]))}"><img title="{$item[user][username]}" alt="{$item[user][username]}" src="{$item[user][face]}"></a>
</div>
<div class="reply-doc">
<h4>
{php echo date('Y-m-d H:i:s',$item[addtime])} 
<a href="{tsUrl('user','space',array('id'=>$item[userid]))}">{$item[user][username]}</a>
</h4>
<p>{$item[content]}</p>
{if $TS_USER[user][userid] == $strArticle[userid] || $TS_USER['user']['isadmin']==1}
<div class="group_banned">
<span><a class="j a_confirm_link" href="{SITE_URL}index.php?app=article&ac=comment&ts=delete&commentid={$item['commentid']}" rel="nofollow">删除</a>
</span>
</div>
{/if}
</div>
</li>
{/loop}
</ul>

<div class="page">{$pageUrl}</div>

<div class="btitle">你的回复</div>
<div>
{if intval($TS_USER[user][userid])==0}
<div class="pd20 tac"><a href="{tsUrl('user','login')}">登录</a> | <a href="{tsUrl('user','register')}">注册</a></div>
{else}
<form method="POST" action="{SITE_URL}index.php?app=article&ac=comment&ts=do" onSubmit="return submitonce(this)" id="formMini">
<textarea style="width:100%;" id="tseditor-mini" name="content"></textarea>
<p>
<input type="hidden" name="articleid" value="{$strArticle[articleid]}" />
<button class="btn btn-success" type="submit">回复</button>
</p>
</form>
{/if}
</div>

</div>
</div>

<div class="cright">

<div class="bbox pd10">
<div class="btitle">文章分类</div>

<div class="catelist">
<ul>
{loop $arrCate $key $item}
<li><a {if $strCate['cateid']==$item['cateid']}class="on"{/if} href="{tsUrl('article','cate',array('id'=>$item['cateid']))}">{$item['catename']}</a></li>
{/loop}
</ul>
</div>

</div>

<div class="facebox bbox pd10">
<div class="face">
<a href="{tsUrl('group','user',array('id'=>$strArticle[user][userid]))}" rel="face" uid="$strArticle[user][userid]"><img title="{$strArticle[user][username]}" alt="{$strArticle[user][username]}" src="{$strArticle[user][face]}" width="48"></a>
</div>

<div class="info">
<h3><a href="">{$strArticle[user][username]}</a></h3>
<div><a class="btn btn-mini" href="javascript:void('0')" onclick="follow('{$strArticle['user']['userid']}');">关注</a></div>
</div>
</div>

<div class="bbox pd10">
<div class="btitle">推荐阅读</div>

<div class="commlist">
<ul>
{loop $arrRecommend $key $item}
<li><a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">{$item['title']}</a></li>
{/loop}
</ul>
</div>

</div>

<div class="bbox pd10">
<div class="btitle">一周热门</div>

<div class="commlist">
<ul>
{loop $arrHot7 $key $item}
<li><a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">{$item['title']}</a></li>
{/loop}
</ul>
</div>

</div>

<div class="bbox pd10">
<div class="btitle">一月热门</div>

<div class="commlist">
<ul>
{loop $arrHot30 $key $item}
<li><a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">{$item['title']}</a></li>
{/loop}
</ul>
</div>

</div>

<div class="clear"></div>
<!--广告位-->
{php doAction('gobad','300')}
</div>

</div>
</div>
{template footer}